<?php
throw new Exception('An Exception occured totally unexpected.', 123);